import { request } from "../utils/request";
/**
 * 配送中心
 */
export function getDistributionCenter(data) {
  return new Promise(res => {
    res(request('/cloudPointController/getDistributionCenter', 'POST', data))
  })
}
/**
 * 查看收入明细
 */
export function getIncomeDetailsListByCustId(data) {
  return new Promise(res => {
    res(request('/cloudPointController/getIncomeDetailsListByCustId', 'POST', data,{
      'Content-Type': 'application/json'
    }))
  })
}
/**
 * 查看兑付明细
 */
export function getCashingDetailsByCustId(data) {
  return new Promise(res => {
    res(request('/cloudPointController/getCashingDetailsByCustId', 'POST', data,{
      'Content-Type': 'application/json'
    }))
  })
}
/**
 * 转让兑付
 */
export function transferableCashing(data) {
  return new Promise(res => {
    res(request('/cloudPointController/transferableCashing', 'POST', data,{
      'Content-Type': 'application/json'
    }))
  })
}

/**
 * 酒钻提取
 */
export function addWithdrawPoint(data) {
  return new Promise(res => {
    res(request('/cloudPointController/addWithdrawPoint', 'POST', data,{
      'Content-Type': 'application/json'
    }))
  })
}

